anthropic

Anthropic: Claude 3 Haiku

models/Claude 3 Haiku

Claude 3 Haiku is Anthropic's fastest and most compact model for near instant responsiveness. Quick and accurate targeted performance. See the launch announcement and benchmark results [here](https://www.anthropic.com/news/claude 3 haiku) #multimodal
Currency$USD
Input$0.25
Output$1.25
Context window200K

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configanthropic/claude-3-haiku
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="anthropic/claude-3-haiku",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])